<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Http\Middleware\EncryptCookies;
use Illuminate\Http\Request;
use Illuminate\Session\Middleware\StartSession;

class TestController extends Controller
{
    public function __construct()
    {
        $this->middleware(EncryptCookies::class);
        $this->middleware(StartSession::class);
        // $this->middleware('throttle:60,1');
        // $this->middleware('bindings');
    }

    public function getIndex(Request $request)
    {
        $arr = ['a', 'b', 'c'];
        // session(['token' => $arr]);
        dd(session('token'));
    }
}
